import {ORDER_DATA} from './actionType.js'
import axios from 'axios'


export const getOrderData = ()=>{
    return (dispatch, getState)=>{
        axios({
            method: 'get',
            url: '/json/orders.json'
        }).then((res)=>{
            dispatch({
                type: ORDER_DATA,
                obj: res.data
            })
        })
    }
}